package pl.edu.mimuw.mas.gui;

import jade.core.Agent;

import javax.swing.JPanel;

/**
 * Krotka opisująca jeden tab w głównym oknie ({@link MainWindow}).
 */
public class TabTuple implements Comparable<TabTuple> {
	private final Agent agent;
	private final String name;
	private final JPanel panel;

	public TabTuple(Agent agent, String name, JPanel panel) {
		super();
		this.agent = agent;
		this.name = name;
		this.panel = panel;
	}

	public Agent getAgent() {
		return this.agent;
	}

	public String getName() {
		return this.name;
	}

	public JPanel getPanel() {
		return this.panel;
	}

	public int compareTo(TabTuple o) {
		return name.compareTo(o.getName());
	}
}
